Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use author fullname (fn) if it is available #304

Open
wants to merge 1 commit into
base: integration
Choose a base branch
from

Conversation

bmaranville
Copy link
Member

If an author record contains a fullname (fn) field, use that directly instead of reconstructing a full name from components (firstName, lastName and middleName).

It seems like fn should be preferred, if it has been provided, given that the algorithms for constructing a full-name representation can depend on cultural, regional or even personal preferences.

@bmaranville
Copy link
Member Author

To be honest all we really need for our use case is for the name string to fall back to author.fn if all the other names are undefined (in our user system only fn is defined) - and it might be less controversial than this change (which will affect a lot of existing citations!)

@RayPlante
Copy link
Collaborator

I've had a mental sticky about this item for sometime, so we should go ahead and fix this. I go back and forth on whether to prefer the fullname in the citation or just use it as a fallback. The rational of the current implementation is to guarantee consistency in formatting. Let's talk this through. @GRG2 ?

Copy link
Collaborator

@chuanlin2018 chuanlin2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally. Worked as expected!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants